/*
 * @Descripttion: 
 * @version: 
 * @Author: 
 * @Date: 2019-09-20 15:52:46
 */
import https from "./http";
import {
  config
} from "./apiConfig";
// 获取表字段
export const apiCommon = process.env.NODE_ENV == "development" ? "/zdUrl" : `${config.ip}/docker-service/`;

// // 获取字段列表
// export function getDic(params, config = {}) {
//   return https({
//     url: `${apiCommon}/TableType/TableInfo`,
//     method: 'get',
//     headers: {
//       sendKey: "getDic"
//     },
//     params,
//     ...config
//   })
// }

const commonObj = {
  getDic: function (params, config = {}) {
    return https({
      url: `${apiCommon}/TableType/TableInfo`,
      method: 'get',
      headers: {
        sendKey: "getDic"
      },
      params,
      ...config
    })
  }
}

export default commonObj
